/*
textlabel.h
(c) 2010 Yury Hamenkov
This file is part of qWordCards.

qWordCards is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

qWordCards is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with qWordCards. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef TEXTLABEL_H
#define TEXTLABEL_H

#include <QLabel>
#include "word.h"

namespace qWordCards {
	class TextLabel : public QLabel {
	Q_OBJECT
	
	private:
		Word	_currentWord;
		bool	_showTranslation;
		void	UpdateContent();
		
	public:
		explicit TextLabel(QWidget *parent = 0);

		void		UpdateContent(Word &word, bool translation);
		void		UpdatePalette ();

	protected:
		virtual void mouseMoveEvent (QMouseEvent * event);
		virtual void mousePressEvent (QMouseEvent * event);
		virtual void mouseReleaseEvent (QMouseEvent * event);

	signals:

	public slots:

	};
}
#endif // TEXTLABEL_H
